<template>
  <div id="app">
    
    <Header v-show="!$route.meta.isHiddenHeader"></Header>
    <router-view></router-view>
    <Footer v-show="!$route.meta.isHiddenFooter"></Footer>
  </div>
</template>

<script>

import Header from './components/Header/index.vue';
import Footer from './components/Footer/index.vue';

export default {
  name: 'App',
  components: {
    
    Header,
    Footer
  },
  mounted(){
    //优化TypeNav重复请求，在app这只会挂载一次
    this.$store.dispatch('home/getCategoryListData')
  }
}
</script>

<style>
  .icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  fill: currentColor;
  overflow: hidden;
}

</style>
